package io.github.jesse205.deskclock.lite.utils;

import android.content.SharedPreferences;
import android.os.Build;

public final class SharedPreferencesUtil {
    private SharedPreferencesUtil() {
    }

    public static void apply(SharedPreferences.Editor editor) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
            editor.apply();
        } else {
            editor.commit();
        }
    }
}
